package com.elong.businesstravel.protocol.login;

import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;

import com.elong.businesstravel.protocol.ProtocolDef;
import com.elong.businesstravel.protocol.baserequest.BaseELongHttpRequest;
/**
 * 联合登录会员注册
 * @author lenovo
 *
 */
public class MemberUnionLoginRequest extends BaseELongHttpRequest {

	// $aRule['/app/service/memberunionlogin'] = array(
	// 'version' => array ('type' => 'float'),
	// 'debug' => array ('type' => 'string','mast' => 'N'),
	// 'openid' => array ('type' => 'string'),
	// 'opentype' => array ('type' => 'number'),
	// 'deviceid' => array ('type' => 'string','mast' => 'N'),
	// 'token' => array ('type' => 'string','mast' => 'N')
	// );
	
	public MemberUnionLoginRequest(Context context, String openIdString, String openTypeString) {
		super(context);
		JSONObject jsonObject = new JSONObject();
		try {
			jsonObject.put("openid", openIdString);
			jsonObject.put("opentype", openTypeString);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		setRequestActionParam(ProtocolDef.ACTION_Memberunionlogin, jsonObject);
	}

}
